|
|
|
|
|
|
|
End Property
Public Property Get CursorDriver() As sqlCursorDriverType
CursorDriver = intCursorDriver
End Property
Public Property Let CursorDriver(ByVal vNewValue As sqlCursorDriverType)
intCursorDriver = vNewValue
End Property
Public Property Get LockType() As sqlLockType
LockType = intLockType
End Property
Public Property Let LockType(ByVal vNewValue As sqlLockType)
intLockType = vNewValue
End Property
Public Property Get ResultSetType() As sqlResultSetType
ResultSetType = intResultSetType
End Property
Public Property Let ResultSetType(ByVal vNewValue As sqlResultSetType)
intResultSetType = vNewValue
End Property |
|
|
|
|
|
|
|
|
After coding all the property handlers, add the code from Listing 19.5 to the Class_Initialize event. |
|
|
|
|
|
|
|
|
Listing 19.5. Coding the Class_Initialize event. |
|
|
|
|
|
|
|
|
Private Sub Class_Initialize()
'
' init props
'
strDataSource = ""
strUserID = ""
strPassword = ""
strSQL = ""
intRecordCount = 0
intCursorDriver = sqlforwardonly
intLockType = sqlreadonly
'
End Sub |
|
|
|
|
|
|
|
|
Save the class modules as objODBC.cls before continuing to the next section. Now you're ready for the first set of Visual Basic routines. |
|
|
|
|
|